{% extends 'HWIOAuthBundle::layout.html.twig' %}


{% block titre_espace %}
    {{ 'header.register' | trans({'%name%': userInformation.realName}, 'HWIOAuthBundle') }}
{% endblock titre_espace %}

{% block hwi_oauth_content %}

    <div class="row">
        <div class="span6">
            <form action="{{ path('hwi_oauth_connect_registration', {'key': key}) }}" {{ form_enctype(form) }} method="POST" class="hwi_oauth_registration_register">
                {{ form_widget(form) }}
                <div>
                    <button type="submit" class="btn btn-primary">{{ 'connect.registration.submit'|trans({}, 'HWIOAuthBundle') }}</button>
                    <a href="{{ path('hwi_oauth_connect') }}" class="btn">{{ 'connect.registration.cancel' | trans({}, 'HWIOAuthBundle') }}</a>
                </div>
            </form>
        </div>
        <div class="span6">
            {% if userInformation.profilePicture is not empty %}
                <img src="{{ userInformation.profilePicture }}" />
            {% endif %}
        </div>
    </div>

{% endblock hwi_oauth_content %}